package com.shop.domain;

import java.io.Serializable;

import java.util.List;

public class PageBean implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -1878205259302462296L;
	public static final int COUNT = 10;
	private int pageNo;
	private int totalPage;
	private int totalNum;
	private List<Product> products;

	public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}

	public long getTotalPage() {
		//return totalNum / COUNT + (totalNum % COUNT == 0 ? 0 : 1);
		//return (totalNum + COUNT -1)/COUNT;
		return totalPage;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public long getTotalNum() {
		return totalNum;
	}

	public void setTotalNum(int totalNum) {
		this.totalNum = totalNum;
	}

	public List<Product> getProducts() {
		return products;
	}

	public void setProducts(List<Product> products) {
		this.products = products;
	}
	
	public static void main(String[] args) {
		System.out.println(new PageBean().getTotalPage() + "");
	}

}
